var recIdArray = [];
var usernameArray = [];

var tableData = {
	url : ctp + "/processController/getProcessPerson.shtml",
	hidden : [ "username=USER_NAME" ],
	propertys : [ "USER_NAME","USER_LOGINCODE","ROLE_NAME"],
	opers : false,
	globalCheck : [["recId", recIdArray],["username", usernameArray]],
	startLoad : function() {
		getListData(this);
	}
};
function searchData(curr) {
	setTagAndValue("form1", "curr", curr);
	setTagAndValue("form1","SUNNADA_PAGE_SIZE",5); 
	tableData.checkBoxValue = window.parent.$("#auditRecid" + temp).val();
	tableData.checkBoxName = window.parent.$("#auditPerson" + temp).html();
	tableData.startLoad();
}
$(document).ready(function() {
	searchData();
});

function addPerson(){
	var recIds = getCheckIds();
	var recIdsArray = recIds.split(",");
	if(recIdsArray.length > 5){
		jalert("最多只能配置5个审核人员！");
		return;
	}
	
	var userNames = getCheckIds(null, "username");
	window.parent.$("#auditRecid" + temp).val(recIds);
	window.parent.$("#auditPerson" + temp).html(userNames);
	var attendance_index = parent.layui.layer.getFrameIndex(window.name);
	parent.layui.layer.close(attendance_index);
}

